package com.freeman.cement.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

//工段，等同于部门
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("dept")
public class Dept {
    //数据表中的主键
    //mybatis-plus使用自增长id
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("dept_code")
    private String deptCode;
    @TableField("dept_name")
    private String deptName;
    @TableField("memo")
    private String memo;
    //内线电话号码
    @TableField("intline")
    private String intline;
    @TableField("is_duty_room")
    private Integer isDutyRoom;

    /**
    //此字段是逻辑删除字段
    @TableLogic
    private Integer isDeleted;
    */

    /**
     //乐观锁版本号字段
     @Version
     private Integer version;
     */

}
